package com.szqhyxj.youxiangju.biz.documentphoto;

import com.google.gson.annotations.SerializedName;
import com.szqhyxj.youxiangju.sys.BaseResult;
import com.szqhyxj.youxiangju.sys.RetrofitFacade;

import io.reactivex.Observable;

import retrofit2.http.POST;

/**
 * Created by leung on 2018/11/1.
 */

public class DocumentPhotoModel {

    public interface DocumentPhotoService{
        @POST("user/info/idCardPhoto")
        Observable<BaseResult<DocumentPhotoEntity>> documentPhoto();

    }

    public static Observable<BaseResult<DocumentPhotoEntity>> documentPhoto(){
        return RetrofitFacade.Companion.getRetrofit().create(DocumentPhotoService.class).documentPhoto();
    }


    public class DocumentPhotoEntity{

        @SerializedName("bankCardPic")
        private String bankCardPic;

        @SerializedName("handIdCard")
        private String handIdCard;

        @SerializedName("idCardFacepic")
        private String idCardFacepic;

        @SerializedName("idCardBackpic")
        private String idCardBackpic;

        public void setBankCardPic(String bankCardPic){
            this.bankCardPic = bankCardPic;
        }

        public String getBankCardPic(){
            return bankCardPic;
        }

        public void setHandIdCard(String handIdCard){
            this.handIdCard = handIdCard;
        }

        public String getHandIdCard(){
            return handIdCard;
        }

        public void setIdCardFacepic(String idCardFacepic){
            this.idCardFacepic = idCardFacepic;
        }

        public String getIdCardFacepic(){
            return idCardFacepic;
        }

        public void setIdCardBackpic(String idCardBackpic){
            this.idCardBackpic = idCardBackpic;
        }

        public String getIdCardBackpic(){
            return idCardBackpic;
        }

        @Override
        public String toString(){
            return
                    "DocumentPhotoEntity{" +
                            "bankCardPic = '" + bankCardPic + '\'' +
                            ",handIdCard = '" + handIdCard + '\'' +
                            ",idCardFacepic = '" + idCardFacepic + '\'' +
                            ",idCardBackpic = '" + idCardBackpic + '\'' +
                            "}";
        }
    }
}
